#include<stdio.h>
#include<signal.h>
#include<unistd.h>
#include<sys/types.h>
#include<string.h>
void sigcb(int signo)
{
    printf("get a signal:%d...\n",signo);
}

int main()
{
    signal(SIGINT,sigcb);
    //struct sigaction act,oact;
    //memset(&act,0,sizeof(struct sigaction));
    //arct.sa_handler=sigcb;
    //sigaction(2,&act,&oact);
   // sigset_t set,oset;
   // sigemptyset(&set);
   // sigemptyset(&oset);
   // sigaddset(&set,2);
   // sigaddset(&set,40);
   // sigprocmask(SIG_SETMASK,&set,&oset);
    while(1)
    {
        printf("I am running...pid:%d\n",getpid());
        sleep(1);
    }
    return 0;
}
